package gallery

import (
	"fmt"
	"os"
	"path/filepath"
)

var (
	Version = "1.0.0"
)

//type PictureUtil struct {
//
//}

func getPictureList(dir string) []string {
	var files []string
	err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
		if err != nil {
			return err
		}
		files = append(files, path)
		return nil
	})
	if err != nil {
		fmt.Println("Failed to walk: ", dir)
		return []string{}
	}
	return files
}
